import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入elementPlus对象
import ElementPlus from "element-plus";
// 引入样式库
import "element-plus/dist/index.css";
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import * as ElIconList from '@element-plus/icons-vue'
 


var app = createApp(App)

for (const name in ElIconList) {
    app.component(name, ElIconList[name])
}
app.use(store)
app.use(router)
// 嵌入到全局
app.use(ElementPlus, {
    locale: zhCn,
  })
app.mount('#app')
